<form class=" ">

        <div class="control-group">
            <label for="cluster" class="control-label">启用网络连接{{ index }}</label>

            <div class="controls">
                <input type="checkbox" ng-model="interface.enable"/>
            </div>
        </div>

        <div class="control-group">
            <label for="cluster" class="control-label">网络</label>

            <div class="controls">
                <select ng-disabled="!interface.enable" class="span4" ng-model="interface.network" ng-options="network.name for network in $parent.networks"
                        >
                </select>
            </div>
        </div>
        <div class="control-group"
             ng-show="(interface.network.networktype==2||interface.network.networktype==3)&&interface.network.rundhcp">
            <label class="control-label">ip:</label>

            <div class="controls">
                <select ng-disabled="!interface.enable" class="span4" ng-model="interface.fixedip"
                        ng-options="n.address for n in interface.fixedips">
                    <option value="">自动分配</option>
                </select>
            </div>
        </div>

        <div class="control-group">
            <label for="cluster" class="control-label">设备类型</label>
            <div class="controls">
                <select ng-disabled="!interface.enable" class="span4" ng-model="interface.model">
                    <option value="e1000">e1000</option>
                    <option value="pcnet">pcnet</option>
                    <option value="virtio">virtio</option>
                    <option value="rtl8139">rtl8139</option>
                    <option value="ne2k_pci">ne2k_pci</option>
                </select>
            </div>
        </div>
        <div class="control-group">
            <label for="name" class="control-label">mac</label>

            <div class="controls">
                <input ng-disabled="!interface.enable" type="text" id="name" class="input" ng-model="interface.mac">
            </div>
        </div>
    <div class="control-group" ng-show="interface.enable">
            <label for="name" class="control-label">网络规则</label>

            <div class="controls">
                <mselect></mselect>
            </div>
        </div>

    </form>